<?php
    $LastSearch = SessionHelper::getSession('LastSearch', 'CLIENTE');
    $ReturnURL = SessionHelper::getSession('ReturnURL', 'CLIENTE');
?>
<form method="POST" action="<?= BASEDIR ?>Cliente/PerformLogin">
    <table class="borderless">
        <tr>
            <td>CPF:</td>
            <td>
                <input type="text" name="CPF" value="<?= $LastSearch['CPF'] ?>">
            </td>
        </tr>
        <tr>
            <td>Senha:</td>
            <td>
                <input type="password" name="senha" value="<?= $LastSearch['senha'] ?>">
            </td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="Entrar"></td>
        </tr>
    </table>
    <input type="hidden" name="ReturnURL" value="<?= $ReturnURL ?>">
</form>
<br>
<span><a href="<?= BASEDIR ?>Cliente/ForgotPassword<?= !empty($ReturnURL) ? "/ReturnURL/$ReturnURL" : '' ?>">Esqueceu sua senha?</a></span>
<br>
<span>Ainda não tem conta? <a href="<?= BASEDIR ?>Cliente/SignUp<?= !empty($ReturnURL) ? "/ReturnURL/$ReturnURL" : '' ?>">Cadastre-se</a> agora!</span>
<br>